<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" class="loading">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="viewport"
	content="width=device-width, initial-scale=0.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="black" name="apple-mobile-web-app-status-bar-style" />
<meta content="telephone=no" name="format-detection" />
<link rel="apple-touch-icon-precomposed"
	href="http://www.17sucai.com/static/images/favicon.ico" />
<script type="text/javascript"
	src="http://qzonestyle.gtimg.cn/qzone/openapi/qc_loader.js"
	data-appid="101311470"
	data-redirecturi="http://www.starlove.top/newsAnalyse/index.htm"
	charset="utf-8"></script>
<script type="text/javascript"
	src="http://qzonestyle.gtimg.cn/qzone/openapi/qc_loader.js"
	charset="utf-8" data-callback="true"></script>

<script type="text/javascript">
	var logined = 0;
</script>
<title>内容</title>
</head>

<body>
	<div id="header" class="head">
		<div class="wrap">
			<i class="menu_back"><a href="index.html"></a></i>
			<div class="title">
				<span class="title_d"><p>正文内容</p></span>
				<div class="clear"></div>
			</div>
		</div>
	</div>

	<div id="container">
		<div id="content">
			<div style="height: 1px"></div>

			<div id="works">
				<div class="pd5">
					<c:choose>
						<c:when test="${!empty url}">
							${htmlContent}
						</c:when>
						<c:otherwise> 
					      暂无最新内容
					   </c:otherwise>
					</c:choose>
					<div class="clear"></div>
				</div>
			</div>
			<div id="more_about">
				<h4>相关文章</h4>
				<div class="more_about">
					<table width="100%" border="0" cellspacing="5">
						<tr>
							<c:choose>
								<c:when test="${!empty newsList}">
									<c:forEach items="${newsList}" var="bean">
										<td style="width: 100px; height: 100px"><a
											target="_blank"
											href="/content.htm?url=${bean.url }&key=${bean.key_news_id}"><img
												src="${bean.img }" /></a></td>
									</c:forEach>
								</c:when>
								<c:otherwise>
									<td><a target="_blank" href="#"><img
											src="images/142013403687.gif" /></a></td>
								</c:otherwise>
							</c:choose>
						</tr>
					</table>
				</div>
			</div>
			<div id="comment">
				<div class="comment_other">
					<h4>全部评论: ${plModel.plrs }</h4>
				</div>
				<ul>
					<c:choose>
						<c:when test="${!empty messageList}">
							<c:forEach items="${messageList}" var="msg">
								<li postdata="17470" usdata="20035">
									<div class="pd5">
										<a class="avt fl" href="javascript:void(0)"><img
											src="http://qzapp.qlogo.cn/qzapp/100516179/5AD4BF326DD5B4D6E12FD08F60EDDBB0/100" /></a>
										<div class="comment_content">
											<h5>
												<div class="fl">
													<a class="comment_name" href="#">${msg.userName }</a><span>${msg.dataChange }</span>
												</div>
												<div class="fr reply_this"></div>
												<div class="clear"></div>
											</h5>
											<div class="comment_p">
												<div class="comment_pct">${msg.message }</div>
											</div>
										</div>
										<div class="clear"></div>
										<div class="comment_reply"></div>
									</div>
								</li>
							</c:forEach>
						</c:when>
						<c:otherwise>
							沙发
						</c:otherwise>
					</c:choose>


				</ul>
				<div class="pd5"></div>
			</div>
		</div>

	</div>


	<div id="us_panel2">
		<table width="100%" height="100%" cellspacing="0" border="0">
			<input type="hidden" value="${newsId }" id="newsId" />
			<tr>
				<td class="us_panel_like"><i></i><span>喜欢(<em id="xh_rs">${plModel.xhrs}</em>)
				</span></td>
				<td class="us_panel_menu"><div class="arrow_top"></div> <i></i>
					<div class="us_panel_menu_left"></div>
					<div class="us_panel_menu_right"></div></td>
				<td class="us_panel_post"><i></i><span>评论(<em>${plModel.plrs}</em>)
				</span></td>
			</tr>
		</table>
	</div>

	<div id="add_newpost">
		<div class="add_newpost">
			<table width="100%" height="100%" cellspacing="5">
				<tr>
					<td class="add_newpost_cancel">取消</td>
					<td class="add_newpost_post">评论</td>
				</tr>
			</table>
		</div>
		<div class="newpost_w">
			<div class="pd10">
				<div class="newpost_w_t">
					<textarea></textarea>
				</div>
			</div>
		</div>
	</div>

	<div id="reg_index">
		<div class="reg_bar">
			<div class="wrap">
				<i class="reg_bar_close fr"></i>
				<div class="clear"></div>
			</div>
		</div>
		<div class="wrap reg_ct">
			<p>
				您可以选择以下第三方帐号直接登录uehtml<br />一分钟完成注册
			</p>
			<a href="javascript:void(0)" id="qq_connect"><span></span></a>
			<script type="text/javascript">
				//调用QC.Login方法，指定btnId参数将按钮绑定在容器节点中
				QC.Login({
					//btnId：插入按钮的节点id，必选
					btnId : "qq_connect",
					//用户需要确认的scope授权项，可选，默认all
					scope : "all",
					//按钮尺寸，可用值[A_XL| A_L| A_M| A_S|  B_M| B_S| C_S]，可选，默认B_S
					size : "A_XL"
				}, function(reqData, opts) {//登录成功
					if (reqData.msg >= 0) {
						$.post("/newsAnalyse/loginSession.htm", {
							"nick" : reqData.nickname
						}, function(data) {
							if (data.flag == "success") {
								logined = 1;
							}
						}, "json");
					}
				});
			</script>
		</div>
	</div>
	<div class="loading_dark"></div>
	<div id="loading_mask">
		<div class="loading_mask">
			<ul class="anm">
				<li></li>
				<li></li>
				<li></li>
				<li></li>
				<li></li>
			</ul>
		</div>
	</div>
	<script language="javascript" src="js/zepto.min.js"></script>
	<script language="javascript" src="js/fx.js"></script>
	<script language="javascript" src="js/script.js"></script>
</body>
</html>